﻿namespace PorteringManagement.Model
{
    using System.Data.Entity;
    using System.Data.Entity.ModelConfiguration.Conventions;

    public class PorteringManagementContext : DbContext
    {
        public DbSet<Cargo> Cargos { get; set; }

        public DbSet<CargoType> CargoTypes { get; set; }

        public DbSet<Customer> Customers { get; set; }

        public DbSet<Invoice> Invoices { get; set; }

        public DbSet<Itinerary> Itineraries { get; set; }

        public DbSet<Journey> Journeys { get; set; }

        public DbSet<Port> Ports { get; set; }

        public DbSet<PortRelation> PortRelations { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingEntitySetNameConvention>();
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
